/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.cw.view;

import java.util.Vector;
import javax.microedition.lcdui.Command;
import javax.microedition.lcdui.CommandListener;
import javax.microedition.lcdui.Display;
import javax.microedition.lcdui.Displayable;
import javax.microedition.midlet.*;
import org.cw.bo.EstablishmentBO;

/**
 * @author SVN - Team
 */
public class MReviewer extends MIDlet implements CommandListener, Runnable{

    private Display display;
    private FromListEstablishments frmListEst;
    public static Vector dataStore;
    private Loading loading;
    private EstablishmentBO estBo = EstablishmentBO.getInstance();
    private Thread t;
    public MReviewer() {
        estBo.initData();
        dataStore = new Vector();
        estBo.list();
        display = Display.getDisplay(this);
        frmListEst = new FromListEstablishments(this);
       // t = new Thread(this);
        //loading = new Loading(this);
    }

    public void startApp() {
       // t.start();
        display.setCurrent(frmListEst);
        
    }

    public void pauseApp() {
        notifyPaused();
    }

    public void destroyApp(boolean unconditional) {
        notifyDestroyed();
    }

    public void commandAction(Command c, Displayable d) {
    }

    public void run() {
        try {
            Thread.sleep(10005);
        } catch (InterruptedException ex) {
            ex.printStackTrace();
        }
        display.setCurrent(frmListEst);
    }
}
